/**
 * API后端接口路径定义
 *
 * date: 2021-06-24
 * author: LILIBO
 * version: 1.0.0
 */

// API接口根路径
var apiRoot = 'http://127.0.0.1:8080/api/'; // 'https://erp.lioillioil.com/api/'; // 'http://127.0.0.1:8000/api/';

var $api = {
    // 阿里云文件上传接口
    aliyun: {
        upload: apiRoot + 'aliyun/upload',
    },
    // 动态菜单接口
    menu: {
        menutree: apiRoot + 'menu/menuTree'
    },
    // 登录授权接口
    auth: {
        login: apiRoot + 'auth/login',
    },
    // 产品类别基础数据接口
    basecategory: {
        get: apiRoot + 'basecategory/',
        list: apiRoot + 'basecategory/list',
        page: apiRoot + 'basecategory/page',
        pagelist: apiRoot + 'basecategory/pagelist',
        add: apiRoot + 'basecategory/add',
        save: apiRoot + 'basecategory/save',
        update: apiRoot + 'basecategory/update',
        delete: apiRoot + 'basecategory/delete',
        remove: apiRoot + 'basecategory/remove',
    },
    // 系统基础配置接口
    baseconfig: {
        get: apiRoot + 'baseconfig/',
        list: apiRoot + 'baseconfig/list',
        page: apiRoot + 'baseconfig/page',
        pagelist: apiRoot + 'baseconfig/pagelist',
        add: apiRoot + 'baseconfig/add',
        save: apiRoot + 'baseconfig/save',
        update: apiRoot + 'baseconfig/update',
        delete: apiRoot + 'baseconfig/delete',
        remove: apiRoot + 'baseconfig/remove',
    },
    // 原料基础数据接口
    basematerial: {
        get: apiRoot + 'basematerial/',
        list: apiRoot + 'basematerial/list',
        page: apiRoot + 'basematerial/page',
        pagelist: apiRoot + 'basematerial/pagelist',
        add: apiRoot + 'basematerial/add',
        save: apiRoot + 'basematerial/save',
        update: apiRoot + 'basematerial/update',
        delete: apiRoot + 'basematerial/delete',
        remove: apiRoot + 'basematerial/remove',
    },
    // 原料颜色样式基础数据接口
    basematerialcolour: {
        get: apiRoot + 'basematerialcolour/',
        list: apiRoot + 'basematerialcolour/list',
        page: apiRoot + 'basematerialcolour/page',
        pagelist: apiRoot + 'basematerialcolour/pagelist',
        add: apiRoot + 'basematerialcolour/add',
        save: apiRoot + 'basematerialcolour/save',
        update: apiRoot + 'basematerialcolour/update',
        delete: apiRoot + 'basematerialcolour/delete',
        remove: apiRoot + 'basematerialcolour/remove',
    },
    // 原料规格型号基础数据接口
    basematerialmodel: {
        get: apiRoot + 'basematerialmodel/',
        list: apiRoot + 'basematerialmodel/list',
        page: apiRoot + 'basematerialmodel/page',
        pagelist: apiRoot + 'basematerialmodel/pagelist',
        add: apiRoot + 'basematerialmodel/add',
        save: apiRoot + 'basematerialmodel/save',
        update: apiRoot + 'basematerialmodel/update',
        delete: apiRoot + 'basematerialmodel/delete',
        remove: apiRoot + 'basematerialmodel/remove',
    },
    // 成品基础数据接口
    baseproduct: {
        get: apiRoot + 'baseproduct/',
        list: apiRoot + 'baseproduct/list',
        page: apiRoot + 'baseproduct/page',
        pagelist: apiRoot + 'baseproduct/pagelist',
        add: apiRoot + 'baseproduct/add',
        save: apiRoot + 'baseproduct/save',
        update: apiRoot + 'baseproduct/update',
        delete: apiRoot + 'baseproduct/delete',
        remove: apiRoot + 'baseproduct/remove',
    },
    // 成品颜色样式基础数据接口
    baseproductcolour: {
        get: apiRoot + 'baseproductcolour/',
        list: apiRoot + 'baseproductcolour/list',
        page: apiRoot + 'baseproductcolour/page',
        pagelist: apiRoot + 'baseproductcolour/pagelist',
        add: apiRoot + 'baseproductcolour/add',
        save: apiRoot + 'baseproductcolour/save',
        update: apiRoot + 'baseproductcolour/update',
        delete: apiRoot + 'baseproductcolour/delete',
        remove: apiRoot + 'baseproductcolour/remove',
    },
    // 成品规格型号基础数据接口
    baseproductmodel: {
        get: apiRoot + 'baseproductmodel/',
        list: apiRoot + 'baseproductmodel/list',
        page: apiRoot + 'baseproductmodel/page',
        pagelist: apiRoot + 'baseproductmodel/pagelist',
        add: apiRoot + 'baseproductmodel/add',
        save: apiRoot + 'baseproductmodel/save',
        update: apiRoot + 'baseproductmodel/update',
        delete: apiRoot + 'baseproductmodel/delete',
        remove: apiRoot + 'baseproductmodel/remove',
    },
    // 客户信息接口
    customer: {
        get: apiRoot + 'customer/',
        list: apiRoot + 'customer/list',
        page: apiRoot + 'customer/page',
        pagelist: apiRoot + 'customer/pagelist',
        add: apiRoot + 'customer/add',
        save: apiRoot + 'customer/save',
        update: apiRoot + 'customer/update',
        delete: apiRoot + 'customer/delete',
        remove: apiRoot + 'customer/remove',
    },
    // 生产记录单接口
    fabricate: {
        get: apiRoot + 'fabricate/',
        list: apiRoot + 'fabricate/list',
        page: apiRoot + 'fabricate/page',
        pagelist: apiRoot + 'fabricate/pagelist',
        add: apiRoot + 'fabricate/add',
        save: apiRoot + 'fabricate/save',
        update: apiRoot + 'fabricate/update',
        delete: apiRoot + 'fabricate/delete',
        remove: apiRoot + 'fabricate/remove',
    },
    // 生产单原料消耗条目接口
    fabricatematerialentry: {
        get: apiRoot + 'fabricatematerialentry/',
        list: apiRoot + 'fabricatematerialentry/list',
        page: apiRoot + 'fabricatematerialentry/page',
        pagelist: apiRoot + 'fabricatematerialentry/pagelist',
        add: apiRoot + 'fabricatematerialentry/add',
        save: apiRoot + 'fabricatematerialentry/save',
        update: apiRoot + 'fabricatematerialentry/update',
        delete: apiRoot + 'fabricatematerialentry/delete',
        remove: apiRoot + 'fabricatematerialentry/remove',
    },
    // 生产单成品产出条目接口
    fabricateproductentry: {
        get: apiRoot + 'fabricateproductentry/',
        list: apiRoot + 'fabricateproductentry/list',
        page: apiRoot + 'fabricateproductentry/page',
        pagelist: apiRoot + 'fabricateproductentry/pagelist',
        add: apiRoot + 'fabricateproductentry/add',
        save: apiRoot + 'fabricateproductentry/save',
        update: apiRoot + 'fabricateproductentry/update',
        delete: apiRoot + 'fabricateproductentry/delete',
        remove: apiRoot + 'fabricateproductentry/remove',
    },
    // 采购订单接口
    orderpurchase: {
        get: apiRoot + 'orderpurchase/',
        list: apiRoot + 'orderpurchase/list',
        page: apiRoot + 'orderpurchase/page',
        pagelist: apiRoot + 'orderpurchase/pagelist',
        add: apiRoot + 'orderpurchase/add',
        save: apiRoot + 'orderpurchase/save',
        update: apiRoot + 'orderpurchase/update',
        delete: apiRoot + 'orderpurchase/delete',
        remove: apiRoot + 'orderpurchase/remove',
    },
    // 采购订单审核接口
    orderpurchaseaudit: {
        get: apiRoot + 'orderpurchaseaudit/',
        list: apiRoot + 'orderpurchaseaudit/list',
        page: apiRoot + 'orderpurchaseaudit/page',
        pagelist: apiRoot + 'orderpurchaseaudit/pagelist',
        add: apiRoot + 'orderpurchaseaudit/add',
        save: apiRoot + 'orderpurchaseaudit/save',
        update: apiRoot + 'orderpurchaseaudit/update',
        delete: apiRoot + 'orderpurchaseaudit/delete',
        remove: apiRoot + 'orderpurchaseaudit/remove',
    },
    // 采购订单条目接口
    orderpurchaseentry: {
        get: apiRoot + 'orderpurchaseentry/',
        list: apiRoot + 'orderpurchaseentry/list',
        page: apiRoot + 'orderpurchaseentry/page',
        pagelist: apiRoot + 'orderpurchaseentry/pagelist',
        add: apiRoot + 'orderpurchaseentry/add',
        save: apiRoot + 'orderpurchaseentry/save',
        update: apiRoot + 'orderpurchaseentry/update',
        delete: apiRoot + 'orderpurchaseentry/delete',
        remove: apiRoot + 'orderpurchaseentry/remove',
    },
    // 销售订单接口
    ordersales: {
        get: apiRoot + 'ordersales/',
        list: apiRoot + 'ordersales/list',
        page: apiRoot + 'ordersales/page',
        pagelist: apiRoot + 'ordersales/pagelist',
        add: apiRoot + 'ordersales/add',
        save: apiRoot + 'ordersales/save',
        update: apiRoot + 'ordersales/update',
        delete: apiRoot + 'ordersales/delete',
        remove: apiRoot + 'ordersales/remove',
    },
    // 销售订单条目接口
    ordersalesentry: {
        get: apiRoot + 'ordersalesentry/',
        list: apiRoot + 'ordersalesentry/list',
        page: apiRoot + 'ordersalesentry/page',
        pagelist: apiRoot + 'ordersalesentry/pagelist',
        add: apiRoot + 'ordersalesentry/add',
        save: apiRoot + 'ordersalesentry/save',
        update: apiRoot + 'ordersalesentry/update',
        delete: apiRoot + 'ordersalesentry/delete',
        remove: apiRoot + 'ordersalesentry/remove',
    },
    // 销售订单收款记录接口
    ordersalesreceipt: {
        get: apiRoot + 'ordersalesreceipt/',
        list: apiRoot + 'ordersalesreceipt/list',
        page: apiRoot + 'ordersalesreceipt/page',
        pagelist: apiRoot + 'ordersalesreceipt/pagelist',
        add: apiRoot + 'ordersalesreceipt/add',
        save: apiRoot + 'ordersalesreceipt/save',
        update: apiRoot + 'ordersalesreceipt/update',
        delete: apiRoot + 'ordersalesreceipt/delete',
        remove: apiRoot + 'ordersalesreceipt/remove',
    },
    // 业务操作记录接口
    recordoperate: {
        get: apiRoot + 'recordoperate/',
        list: apiRoot + 'recordoperate/list',
        page: apiRoot + 'recordoperate/page',
        pagelist: apiRoot + 'recordoperate/pagelist',
        add: apiRoot + 'recordoperate/add',
        save: apiRoot + 'recordoperate/save',
        update: apiRoot + 'recordoperate/update',
        delete: apiRoot + 'recordoperate/delete',
        remove: apiRoot + 'recordoperate/remove',
    },
    // 库存统计接口
    stock: {
        get: apiRoot + 'stock/',
        list: apiRoot + 'stock/list',
        page: apiRoot + 'stock/page',
        pagelist: apiRoot + 'stock/pagelist',
    },
    // 原料仓储接口
    stockmaterial: {
        get: apiRoot + 'stockmaterial/',
        list: apiRoot + 'stockmaterial/list',
        page: apiRoot + 'stockmaterial/page',
        pagelist: apiRoot + 'stockmaterial/pagelist',
        add: apiRoot + 'stockmaterial/add',
        save: apiRoot + 'stockmaterial/save',
        update: apiRoot + 'stockmaterial/update',
        delete: apiRoot + 'stockmaterial/delete',
        remove: apiRoot + 'stockmaterial/remove',
    },
    // 原料仓储记录接口
    stockmaterialrecord: {
        get: apiRoot + 'stockmaterialrecord/',
        list: apiRoot + 'stockmaterialrecord/list',
        page: apiRoot + 'stockmaterialrecord/page',
        pagelist: apiRoot + 'stockmaterialrecord/pagelist',
        add: apiRoot + 'stockmaterialrecord/add',
        save: apiRoot + 'stockmaterialrecord/save',
        update: apiRoot + 'stockmaterialrecord/update',
        delete: apiRoot + 'stockmaterialrecord/delete',
        remove: apiRoot + 'stockmaterialrecord/remove',
    },
    // 成品仓储接口
    stockproduct: {
        get: apiRoot + 'stockproduct/',
        list: apiRoot + 'stockproduct/list',
        page: apiRoot + 'stockproduct/page',
        pagelist: apiRoot + 'stockproduct/pagelist',
        add: apiRoot + 'stockproduct/add',
        save: apiRoot + 'stockproduct/save',
        update: apiRoot + 'stockproduct/update',
        delete: apiRoot + 'stockproduct/delete',
        remove: apiRoot + 'stockproduct/remove',
    },
    // 成品仓储记录接口
    stockproductrecord: {
        get: apiRoot + 'stockproductrecord/',
        list: apiRoot + 'stockproductrecord/list',
        page: apiRoot + 'stockproductrecord/page',
        pagelist: apiRoot + 'stockproductrecord/pagelist',
        add: apiRoot + 'stockproductrecord/add',
        save: apiRoot + 'stockproductrecord/save',
        update: apiRoot + 'stockproductrecord/update',
        delete: apiRoot + 'stockproductrecord/delete',
        remove: apiRoot + 'stockproductrecord/remove',
    },
    // 供应商接口
    supplier: {
        get: apiRoot + 'supplier/',
        list: apiRoot + 'supplier/list',
        page: apiRoot + 'supplier/page',
        pagelist: apiRoot + 'supplier/pagelist',
        add: apiRoot + 'supplier/add',
        save: apiRoot + 'supplier/save',
        update: apiRoot + 'supplier/update',
        delete: apiRoot + 'supplier/delete',
        remove: apiRoot + 'supplier/remove',
    },
    // 仓库信息接口
    warehouse: {
        get: apiRoot + 'warehouse/',
        list: apiRoot + 'warehouse/list',
        page: apiRoot + 'warehouse/page',
        pagelist: apiRoot + 'warehouse/pagelist',
        add: apiRoot + 'warehouse/add',
        save: apiRoot + 'warehouse/save',
        update: apiRoot + 'warehouse/update',
        delete: apiRoot + 'warehouse/delete',
        remove: apiRoot + 'warehouse/remove',
    },
    // 系统菜单接口
    sysmenu: {
        get: apiRoot + 'sysmenu/',
        list: apiRoot + 'sysmenu/list',
        page: apiRoot + 'sysmenu/page',
        pagelist: apiRoot + 'sysmenu/pagelist',
        add: apiRoot + 'sysmenu/add',
        save: apiRoot + 'sysmenu/save',
        update: apiRoot + 'sysmenu/update',
        delete: apiRoot + 'sysmenu/delete',
        remove: apiRoot + 'sysmenu/remove',
    },
    // 菜单角色关联接口
    syspower: {
        get: apiRoot + 'syspower/',
        list: apiRoot + 'syspower/list',
        page: apiRoot + 'syspower/page',
        pagelist: apiRoot + 'syspower/pagelist',
        add: apiRoot + 'syspower/add',
        save: apiRoot + 'syspower/save',
        update: apiRoot + 'syspower/update',
        delete: apiRoot + 'syspower/delete',
        remove: apiRoot + 'syspower/remove',
    },
    // 系统角色接口
    sysrole: {
        get: apiRoot + 'sysrole/',
        list: apiRoot + 'sysrole/list',
        page: apiRoot + 'sysrole/page',
        pagelist: apiRoot + 'sysrole/pagelist',
        add: apiRoot + 'sysrole/add',
        save: apiRoot + 'sysrole/save',
        update: apiRoot + 'sysrole/update',
        delete: apiRoot + 'sysrole/delete',
        remove: apiRoot + 'sysrole/remove',
    },
    // 系统用户接口
    sysuser: {
        get: apiRoot + 'sysuser/',
        list: apiRoot + 'sysuser/list',
        page: apiRoot + 'sysuser/page',
        pagelist: apiRoot + 'sysuser/pagelist',
        add: apiRoot + 'sysuser/add',
        save: apiRoot + 'sysuser/save',
        update: apiRoot + 'sysuser/update',
        delete: apiRoot + 'sysuser/delete',
        remove: apiRoot + 'sysuser/remove',
    },
};
